package com.czz.ucenter.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassName: Admin
 * @Author Czz
 * @Date 2019/12/24
 * @Time 9:44
 **/

@Data
@TableName(value = "system_admin")
@Accessors(chain = true)
public class Admin {

    @TableId(value = "admin_id", type = IdType.ID_WORKER_STR)
    private String id;

    @TableField(value = "admin_mobile")
    private String mobile;

    @JsonIgnore
    @TableField(value = "admin_password")
    private String password;

    @JsonIgnore
    @TableField(value = "admin_salt")
    private String salt;

    @TableField(value = "admin_name")
    private String name;

    @TableField(value = "admin_status")
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
